import request from "@/utils/request";
import {HospitalResponseData} from "@/api/home/type";

// 请求医院页信息
export let reqHospitalPage = (page:number,limit:number,hostype:string,districtCode:string) => request({url: `/hosp/hospital/${page}/${limit}?hostype=${hostype}&districtCode=${districtCode}`, method: 'get'})

// 请求医院等级和地区
export let reqHospitalLevelAndRegion = (dictCode:string) => request<HospitalResponseData>({url:`/cmn/dict/findByDictCode/${dictCode}`,method:'get'})

// 请求医院通过医院名称
export let reqHospitalFindByName = (hosname:string) => request({url:`/hosp/hospital/findByHosname/${hosname}`,method:'get'})


